package com.aliyun.heiyu.powermaster.server.rbac.dao;

import com.aliyun.heiyu.powermaster.server.rbac.object.entity.SysAuditManagements;

import java.util.List;

public interface SysAuditManagementsDao {

    /** 添加策略管理 **/
    void saveAuditManagement(SysAuditManagements auditManagement);

    /**更新策略管理 **/
    boolean updateAuditManagement(SysAuditManagements auditManagement);

    /** 删除策略管理 **/
    boolean deleteAuditManagement(Integer auditManagementId);

    /** 获取策略管理 **/
    List<SysAuditManagements> getAuditManagements(Integer startNum,Integer endNum,String businessModule);

    Integer getAuditManagementsCount(String businessModule);

    /** 获取策略管理详情  **/
    SysAuditManagements getAuditManagementById(Integer auditManagementId);

    SysAuditManagements getAuditManagementByUserName(String userName);
}
